# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-xmind
_pkgname=XMind
pkgver=1.2.0
pkgrel=6
pkgdesc='One-stop solution for creating, analyzing and updating XMind mind maps.'
arch=('any')
url='https://pypi.org/project/XMind/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/X/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('8e0901bda79f7281a72af422471d78096d57a95b81e179fc5fcb8b279cdd153a9b88fbf975478dc53f03c1986bb9a7bbd61fecdf573b9fcd42552cfac1217719')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

